package com.yr.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by zq on 2016/11/30.
 * 常量类
 */
@Component
@ConfigurationProperties(prefix = "constant")
public class Constant {
    private static String conding = "utf-8";

    /*
    当前环境
     */
    public static String ENV;

    /**
     * @return 返回是否为生产环境(生产,测试)
     */
    public static boolean isProENV;
    //资源域名
    public static  String DO_MAIN ;
//    //资源根目录
    public static  String ROOT_PATH;
//    //用户资源目录
    public static  String USER_PATH;

    //微信充值回调地址
    public static  String WECHAT_NOTIFY_URL ;

    //微信公众号登录回调地址
    public static  String WECHAT_LOGIN_NOTIFY_URL ;
    //----------中润付支付相关------------------
    public static  String ZRF_NOTIFY_URL ;

    public static String getENV() {
        return ENV;
    }

    public static void setENV(String ENV) {
        Constant.ENV = ENV;
    }

    public static boolean isIsProENV() {
        return isProENV;
    }

    public static void setIsProENV(boolean isProENV) {
        Constant.isProENV = isProENV;
    }

    public static String getDoMain() {
        return DO_MAIN;
    }

    public static void setDoMain(String doMain) {
        DO_MAIN = doMain;
    }

    public static String getRootPath() {
        return ROOT_PATH;
    }

    public static void setRootPath(String rootPath) {
        ROOT_PATH = rootPath;
    }

    public static String getUserPath() {
        return USER_PATH;
    }

    public static void setUserPath(String userPath) {
        USER_PATH = userPath;
    }

    public static String getWechatNotifyUrl() {
        return WECHAT_NOTIFY_URL;
    }

    public static void setWechatNotifyUrl(String wechatNotifyUrl) {
        WECHAT_NOTIFY_URL = wechatNotifyUrl;
    }

    public static String getWechatLoginNotifyUrl() {
        return WECHAT_LOGIN_NOTIFY_URL;
    }

    public static void setWechatLoginNotifyUrl(String wechatLoginNotifyUrl) {
        WECHAT_LOGIN_NOTIFY_URL = wechatLoginNotifyUrl;
    }

    public static String getZrfNotifyUrl() {
        return ZRF_NOTIFY_URL;
    }

    public static void setZrfNotifyUrl(String zrfNotifyUrl) {
        ZRF_NOTIFY_URL = zrfNotifyUrl;
    }




}
